$(function () {
    $.ajax({
        url: '/user/selectUserInfomationById',
        type: 'POST',
        async: true,
        dataType: 'json',
        success: function (data, textStatus, jqXHR) {
            console.log(data);
            if (data.userName != null) {
                document.getElementById('user_name').innerHTML = data.userName;
            }
            document.getElementById('pass_word').innerHTML = "********";
            if (data.sex == "F") {

                document.getElementById('sex').innerHTML = "男";
            }
            if (data.sex == "M") {

                document.getElementById('sex').innerHTML = "女";
            }
            if (data.age != null) {

                document.getElementById('age').innerHTML = data.age;
            }
            if (data.phoneNumber != null) {

                document.getElementById('phone').innerHTML = data.phoneNumber;
            }
            if (data.creationDate != null) {

                document.getElementById('creation_date').innerHTML = data.creationDate;
            }
            if (data.lastUpadateDate != null) {

                document.getElementById('lastUpadate_date').innerHTML = data.lastUpadateDate;
            }
            if (data.comments != null) {

                document.getElementById('comments').innerHTML = data.comments;
            }
        },
        error: function (xhr, textStatus) {
            console.log('查询错误')

        },

    })

});



